emitAwait

suspend fun emitAwait(path: String = "/", event: String, vararg payloads: Any?)

Suspends until the event is accepted into the outbound queue for path. See NamespaceSocket.emitAwait for queue vs async SocketError.SendFailed semantics.


suspend fun emitAwait(path: String = "/", command: StreamCommand)

Same queue semantics as emitAwait for a StreamCommand on path.